home *** CD-ROM | disk | FTP | other *** search
/ Quick PC 62 / Quick PC 62.iso / I386 / IIS5_01.CAB / IIS_ClientScript_JScript.asp < prev    next >
Encoding:
Text File  |  1998-05-29  |  985 b   |  37 lines

  1. <%@ LANGUAGE = JScript %>
  2.  
  3. <!*************************
  4. This sample is provided for educational purposes only. It is not intended to be 
  5. used in a production environment, has not been tested in a production environment, 
  6. and Microsoft will not provide technical support for it. 
  7. *************************>
  8.  
  9. <!-- Define client-side scripting function to display to user. -->
  10. <!-- Note that server-side scripting is being used to dynamically    -->
  11. <!-- construct the return message. -->
  12.  
  13. <SCRIPT LANGUAGE = JavaScript>
  14.     function Doit()
  15.     {
  16.         alert("Your ASP Session ID is:" + <%= Session.SessionID %>);
  17.     }
  18. </SCRIPT>
  19.  
  20.  
  21. <HTML>
  22.     <HEAD>
  23.         <TITLE>Client-Side Scripting</TITLE>
  24.     </HEAD>
  25.  
  26.     <BODY BGCOLOR="White" TOPMARGIN="10" LEFTMARGIN="10">
  27.         
  28.         <!-- Display header. -->
  29.  
  30.         <FONT SIZE="4" FACE="ARIAL, HELVETICA">
  31.         <B>Client Side Scripting</B></FONT><P>   
  32.  
  33.         <INPUT TYPE=Button VALUE="Click Here" ONCLICK=Doit()>
  34.         
  35.     </BODY>
  36. </HTML>
  37.